package com.springboot.demo.entity;

import com.springboot.demo.common.customValidator.ListNotHasNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author wubc683
 * @desc
 * @date 2021-10-11 11:06
 */
@Data
public class IdList implements Serializable {
    @Valid
    @ApiModelProperty(value = "id数组")
    @Size(min = 1)
    @ListNotHasNull
    private List<Long> list;
}
